/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bis.logic;

import com.entities.EventLibrary;
import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author NguyenVan
 */
public class testStore {
    
    public static void main(String[] args) throws SQLException {
        DatabaseQuery db=new DatabaseQuery();
        DatabaseInteraction dbi=new DatabaseInteraction();
        String store=db.test;
        ResultSet rs=dbi.getDataWithStoreNoParameter(store);
       // List<EventLibrary> list=new ArrayList<>();
        while(rs.next()){
            int id=rs.getInt("eventId");
            String name=rs.getString("name");
            String timeStart=rs.getString("timeStart");
            System.out.println("evenID ='"+id+ "' name='"+name+"' date='"+timeStart+"'");
        }
    }
}
